const requireApi = require.context(".", true, /.js$/);

const module = {};

const excludes = ['./index.js', './http.js']; // 白名单文件

requireApi.keys().forEach((key, index)=> {
	if(excludes.includes(key)) return;
	Object.assign(module, {[key.replace(/(.*\/)*([^.]+).*/ig, "$2")]: requireApi(key)})
})

export default module;